package com.ghsc.ghxc.jsb.ui.main.view

import android.content.Context
import android.widget.TextView
import com.ghsc.ghxc.jsb.R
import com.lxj.xpopup.core.CenterPopupView

/**
 * 项目：JingShortVideo
 * 包名：com.bbl.jyShortVideo.ui.main.view
 * 类名：NoticePopView
 * 创建时间：2022/9/30 16:06
 * 创建人 @author： xiaolin
 * 描述 ：Todo...公告
 */
class NoticePopView  (context: Context, tvTitle:String, content:String) : CenterPopupView(context) {

    override fun getImplLayoutId() = R.layout.popup_notice

    val content=content
    val tvTitle=tvTitle


    override fun onCreate() {
        super.onCreate()
        findViewById<TextView>(R.id.tvTitle).text=tvTitle

        findViewById<TextView>(R.id.tvContent).text=content

        findViewById<TextView>(R.id.tvBtnConfirm).setOnClickListener {
            dismiss()
        }
    }
}